<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>index页面</title>
</head>
<body>
		<%-- 如果要在jsp中写java代码,需要写在脚本段中 --%>
		<%
		//获取域对象
		//获取域对象的内容
			String name = (String) request.getAttribute("name");
			System.out.println("name: "+ name);
			
			Integer age = (Integer) request.getAttribute("age");
			System.out.println("age: "+ age);
			
			//有问题的代码
			//List<String> list = (List<String>) request.getAttribute("list");
			//System.out.println(list.get(0));
		
		%>
</body>
</html>